import { View } from "../../../mvc/core/View";
import { LayerManager } from "../../manager/LayerManager";
import { Global } from "../../../../com/gengine/global/Global";
import { SecTimerView } from "../common/SecTimerView";
import { FilterConst } from "../../../component/gconst/FilterConst";
import { GTextFormat } from "../../../common/GTextFormat";
import { FontUtil } from "../../../common/font/FontUtil";
import { Language } from "../../../../extend/language/Language";
import { ObjCreate } from "../common/ObjCreate";
type int = number;
//class CoinPickLeftTime
    
    export  class CoinPickLeftTime extends View
    {
        constructor()
        {
            super();
            this.layer = LayerManager.uiLayer;
            this.x = Global.stage.stageWidth - 540;
            this.y = 100;
            this.mouseEnabled = false;
            this.mouseChildren = false;
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._tfLeftTime = new SecTimerView();
            this._tfLeftTime.filters = [FilterConst.glowFilter];
            this._tfLeftTime.mouseEnabled = false;
            var loc1=new GTextFormat(FontUtil.songtiName, 16, 16580352);
            loc1.bold = true;
            this._tfLeftTime.defaultTextFormat = loc1;
            this._tfLeftTime.filters = [FilterConst.glowFilter];
            this._tfLeftTime.setParse(Language.getString(42018));
            ObjCreate.setObjAttri(this._tfLeftTime, 0, 0, 180, 22, this);
            return;
        }

        public updateLeftTime(arg1: int): void
        {
            this._tfLeftTime.setLeftTime(arg1);
            return;
        }

        public resetPosition(): void
        {
            this.x = Global.stage.stageWidth - 540;
            this.y = 100;
            return;
        }

        public /* override */ dispose(arg1: Boolean=true): void
        {
            this._tfLeftTime.dispose();
            this._tfLeftTime = null;
            return;
        }

        /* internal */ /* var */_tfLeftTime: SecTimerView;
    }
